package com.hyfrogx.common.param;

/**
 *
 *
 * @项目 SpringMvc
 *
 * @日期: 2017年5月19日
 *
 * @负责人: LGQ
 */
public interface Constants {

	// 常规布尔值状态 1是0否
	interface Status {
		// 是
		int TRUE = 1;
		// 否
		int FLASE = 0;
	}
	// 任务类型
	interface TaskType {
		// 新手
		int NOVICE = 1;
		// 每日
		int DAILY = 2;
		// 高级
		int SENIOR = 3;
	}
	// 任务编码
	interface TaskCode {
		// 注册APP
		int REGISTER = 1101;
		// 填写邀请码(被邀请)
		int BE_INVITE = 1102;
		// 完善资料
		int PERFECT_INFO = 1103;

		// 签到
		int SGIN = 2201;
		//阅读资讯
		int READ_INFORMATION = 2202;
		//学习课程
		int WATCH_COURSE=2203;
		//分享资讯
		int SHARE_INFORMATION = 2204;
		//分享快讯
		int SHARE_FLASH = 2205;
		//分享直播
		int SHARE_ZOOM = 2206;
		//评论文章
		int REMAKE_TEXT = 2207;
		//评论课程
		int REMARK_COURSE=2208;
		//免费看直播
		int WATCH_LIVE = 2209;
		//分享课程
		int SHARE_COURSE=2210;

		//每日任务都完成
		int FINISH_DAILY = 3301;
		// 邀请
		int INVITE = 3302;
		//充值蛙豆
		int RECHAREG = 3303;
		//召开会议
		int OPEN_MEETING = 3304;
		//购买专属会议
		int BUY_VIP_MEETING = 3305;
		//购买课程
		int BUY_COURSE=3306;
		//购买直播门票
		int BUY_LIVE = 3307;
		//直播送礼
		int SEND_GIFT = 3308;
		//分销课程
		int RETAIL_COURSE = 3309;
		//参加会议
		int JOIN_MEETING= 3310;
		//活动充值任务
		int ACTIVITY_RECHAREG = 3311;
	}
	interface HttpPay {
		String USERID = "uid";
		String YID = "yid";
		String GIFTID = "gid";
		String TYPE = "type";
		String VID = "vid";
		String MONEY = "money";
		String NUM = "num";
	}
	interface CHANNELTYPES {
		// 发行渠道
		int RELEACHANNEL = 1;
		// 设备渠道
		int DEVICECHANNEL = 0;
	}

	// 验证码有效期2分钟
	interface yzmTime {
		int time = 120000;
	}

	// 微信配置有效期5分钟
	interface wxConfigTime {
		int time = 300000;
	}

	interface unionTime {
		int time = 600000;
	}

	// 签到有效期24小时/-今天0点到当前经过的毫秒数
	interface signTime {
		long time = 120000;
	}

	interface LivingStatus {
		int PERSON = 2;// 个人直播
		int LIVING = 1;// 企业直播
		int CLICK = 0;// 点播
	}

	interface CommonStatus {
		int NORMAL = 1;
		int ERROR = 0;
	}

	interface TaskStatus {
		// 已完成(待领取)
		int FINISH = 1;
		// 已领取
		int RECEIVE = 2;
	}

	interface GiftGroup {
		int Defult = 1;
	}

	interface UserStatus {
		int NORMAL = 1;// 正常状态
		int ERROR = 0;// 禁用状态
	}

	// 商品上下架状态
	interface GoodsStatus {
		String WATING = "0";// 待上架 默认
		String ALREADY = "1";// 已上架
		String DOWN = "2"; // 已下架
	}

	// 商品平台价模式
	interface GOODS_PLATFORM_TYPE {
		String BLEND = "1";// 平台价+积分
		String ALLSCORE = "2";// 全积分
		String ALLMONEY = "3"; // 全人民币
	}

	// 商品运费模式
	interface GOODS_FREIGHT_TYPE {
		String FREE = "0";// 包邮
		String CUSTOM = "1 ";// 自定义
	}

	interface Path {
		// 直播房间关联图片存取路径
		String LIVE_PUT = "live_put";
		// 个人直播相关图片存取路径
		String PERSON_PUT = "person_put";
		// 礼物图片
		String GIFT_PUT = "gift_put";
		// 充值图片
		String CHARGE_PUT = "charge_put";
		// 充值图片
		String APK_PUT = "apk_put";
		// 用户头像
		String USER_PUT = "user_put";
		// 广告图位
		String AD_PUT = "ad_put";
		// 用户认证图位
		String AUTHER_PUT = "auther_put";
		// 游戏图位
		String GAME_PUT = "game_put";
		// 专栏分类图片
		String COLUMNTYPE_PUT = "columntype_put";
		// 专栏图片
		String COLUMN_PUT = "column_put";
		// 资讯
		String INFORMATION_PUT = "information_put";
		// 资讯
		String INFORMATION_PUT_FU = "information_put_fu";
		// 活动
		String ACTIVITY_PUT = "activity_put";
		// 游戏apk
		String GAMEAPK_PUT = "gameapk_put";
		// 模块配置图片
		String IMITATION_PUT = "imitation_put";
		// 模块配置图片
		String RADIO_PUT = "radio_put";
		// 用户反馈图片
		String FEEDBACK_put = "/feedback_put";
		// 用户反馈图片
		String WULI_put = "wuli_put";
		// 资讯号审核图片
		String INFORMATION_VERIFY_PUT ="information_verify_put";
		// 识别存放图片路径
		String TMPBAIDU_SCAN_PUT = "tmpbaidu_scan_put";
		// 商品分类图片存放路径
		String GOODS_TYPE_PUT = "goods_type_put";
		// 商品资源图片存放路径
		String GOODS_PUT = "good_put";
		// 测试商品富文本资源存放路径
		String UEDITOR_GOODS_PUT = "ueditor_goods_put";
		//课程分类图片
		String COURSE_PUT= "course_put";
		//任务图标
		String TASK_PUT = "task_put";
		//积分商城图片
		String COIN_GOODS_PUT = "coin_goods_put";
	}

	interface SmsStatus {
		int NORMAL = 1;// 正常状态
		int ERROR = 0;// 禁用状态
	}

	interface Sex {
		int MAN = 1;// 男
		int WOMEN = 0;// 女
	}

	//// 0表示禁用； 1表示允许推流；2表示断流
	// interface Living
	// {
	// int FORBID = 0;
	// int ALLOW = 1;
	// int STOP = 2;
	// }
	interface RedisKey {
		String DISCUSS = "userDiscuss";
		String IMGROUP = "group";
		String ACCOUNT = "money";
		String TOKEN = "token";
		String REGISTER_YZM = "register_yzm";
		String PASS_YZM = "pass_yzm";
		String ANDROID_SCALE = "android_scale";
		String IOS_SCALE = "ios_scale";
		String LIVEHISTORY = "livehistory";
		String VOLUME = "volume";// VOLUME 表示注册赠送代币卷
		String RECOMMEND_TOPIC = "recommend_topic";
		String UNIONPAY = "unionpay";
		String USER_ZOOM_OPEN_TIMES = "user_zoom_open";
		String USER_ZOOM_JOIN_TIMES = "user_zoom_join";
		String COLUMN_MSG = "column_msg";
		String COLUMN_LESSON_READ = "column_lesson_read";// 栏目的阅读量
		String ZOOM_PRICE = "zoom_price";
		String CHARGE_PRECENT = "charge_precent";
		String DEVICE_TOKEN = "device_token";
		String INFO_ATTENTION = "info_attention";
		String FIX_PRICE = "fix_meet_price";
		String FIX_BASIC_JOIN_PRICE = "fix_meet_basic_join_price";
		String GAIWANG_YZM = "gaiwang_yzm";
		String WECHAT_CONFIG = "wechat_config";
		String SCORE = "score";
		String SIGN = "sign";
		String TASK = "task";
	}

	/**
	 * 认证状态参数
	 *
	 * @负责人: Orchid
	 */
	interface AutherStatus {
		int WAIT = 0; // 待审
		int NORMAL = 1; // 通过
		int ERROR = 2; // 失败
		int NOAUTH = -1; // 未认证
	}

	interface CharSet {
		String utf8 = "UTF-8";
	}

	/**
	 * 数据格式
	 *
	 * @author Orchid
	 * @date 2017年12月8日
	 * @version hyplatform 3.0
	 * @DateType
	 */
	interface DateType {
		String JSON = "json";
	}

	interface PayStatus {
		int SUCCESS = 1; // 支付成功
		int CREATE = 0; // 订单已创建
		// 用户取消支付操作
		int CANCEL = -1;
		// 微信支付失败
		int FAIL = -2;
	}

	interface AliPayStatus {
		String success = "TRADE_SUCCESS";// 交易支付成功
		String wait = "WAIT_BUYER_PAY";// 交易创建，等待买家付款
		String close = "TRADE_CLOSED";// 未付款交易超时关闭，或支付完成后全额退款
		String finished = "TRADE_FINISHED";// 交易结束，不可退款
	}

	interface WeiXinStatus {
		String SUCCESS = "SUCCESS";// 交易支付成功
		String NOTPAY = "NOTPAY";// —未支付

		String FAIL = "FAIL";// 支付失败(其他原因，如银行返回失败)

		String REFUND = "REFUND";// 转入退款
		String CLOSED = "CLOSED";// 已关闭
		String USERPAYING = "USERPAYING";// 用户支付中
	}

	interface PayChannel {
		int ZHIFUBAO = 1;// 支付宝
		int APPLE = 2;// 苹果内购
		int WEIXIN = 3;// 微信
//		int QQ = 4;// qq
//		int UNIONPAY = 5;// 银联
		int SYSTEM_COIN = 4;// 系统充值
		int SYSTEM_REDUCE = 5;// 系统扣除
		int GAIWANG = 8;//盖网充值
	}

	interface Stastics {
		int PAGE_COUNT = 2000;// 每次从网关记录读取多少条数据
	}

	interface WXINFO {
		String APPID = "wxb7cb7afafbf25532";
		String SECRET = "53fc15860f4af715c2c4012f836bce7f";
	}

	interface WeChat {
		String APPID = "wxf35fe1863493f406";
		String SECRET = "a051c965763002f182278bda8ede93eb";
	}

	interface SHAREWXOLD {
		String APPID = "wx6bdfd8120439c428";
		String SECRET = "8823ac05ed5be9a601812282a03daf3c";
	}

	interface SHAREWX {
		String APPID = "wxa286cd324dd586bb";
		String SECRET = "c9a309409c9c628c9cd619363c3a2757";
	}

	interface InformationVerifyReason{
		String REASONA = "1";
		String REASONB = "2";
		String REASONC = "3";
	}

	interface SignRule{
		String SIGNRULE = "1、每人每天签到一次，签到后可获得积分奖励。\n2、连续签到的日期不可中断，如日期中断，连续签到的天数会从1天开始重新计算。\n3、用户获得连续签到奖励后，连续签到天数会重新计算，并在下一次连续签到满7天时再次获得连签奖励。";
	}

	interface TaskIcon{
		String SIGNICON = "1";
		String CONVERTICON = "2";
		String SHAREICON = "3";
	}

	interface HyOrder{
		String WECHAT = "1";
		String ALIPAY ="2";
		String WAITITINGFORPAY = "1";
		String WAITITINGFORSHIP = "2";
		String WAITITINGFORGOODS = "3";
		String FINISHED = "4";
		String CANCELLED = "0";
	}
	interface ShopCoinStep{
		Integer FINISH = 0; //第一步兑换成功
		Integer PERFECT = 1;//第二步完善资料成功
	}
	interface ShopCoinStatus{
		Integer FAIL = 0;//兑换失败
		Integer DELIVER = 1;//待发货
		Integer RECEIVING = 2;//待收货
		Integer SUCCESS = 3;//完成
	}
	interface coinGoodsStatus{
		Integer UPPER = 1;//上架
		Integer LOWER = 0;//下架
	}
}
